import request from '@/utils/request'

// 查询灭火器台账列表
export function listAfExtinguisher(query) {
  return request({
    url: '/security/afExtinguisher/list',
    method: 'get',
    params: query
  })
}

// 查询灭火器台账详细
export function getAfExtinguisher(id) {
  return request({
    url: '/security/afExtinguisher/' + id,
    method: 'get'
  })
}

// 新增灭火器台账
export function addAfExtinguisher(data) {
  return request({
    url: '/security/afExtinguisher',
    method: 'post',
    data: data
  })
}

// 修改灭火器台账
export function updateAfExtinguisher(data) {
  return request({
    url: '/security/afExtinguisher',
    method: 'put',
    data: data
  })
}

// 删除灭火器台账
export function delAfExtinguisher(id) {
  return request({
    url: '/security/afExtinguisher/' + id,
    method: 'delete'
  })
}
